#ifndef REMOTECONTROL_H
#define REMOTECONTROL_H

#include "command.h"

class RemoteControl
{
public:
    RemoteControl();
    RemoteControl(Command *command);

    void setCommand(Command *command) { m_command = command; }
    void execute()
    {
        if (m_command)
        {
            m_command->execute();
        }
    }
    void undo()
    {
        if (m_command)
        {
            m_command->undo();
        }
    }

private:
    Command *m_command;
};

#endif // REMOTECONTROL_H
